package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_entrust")
public class RoomEntrust extends TenantBaseDO implements Serializable{

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "业主名称")
    private String name;

    @Schema(description = "业主电话")
    private String phone;

    @Schema(description = "来源")
    private String source;

    @Schema(description = "看房时间")
    private LocalDateTime viewingTime;

    @Schema(description = "当前跟进人姓名")
    private String operatorName;

    @Schema(description = "所在小区")
    private String area;

    @Schema(description = "状态 0(待指派),1(跟进中),2(完成),3(已去电),4(已看房),5(已推迟),6(无效),7(已签约),8(放弃)")
    private String status;

    @Schema(description = "当前跟进人ID")
    private Long operatorId;

    private Long deptId;

}
